import 'package:get/get.dart';
import 'package:shared_preferences/shared_preferences.dart';

class GetxServicesTool extends GetxService {

  Future<void> getCount() async {
    SharedPreferences prefs = await SharedPreferences.getInstance();

    int count = prefs.getInt('counter') ?? 0;

    count++;

    print('count = $count');

    await prefs.setInt('counter', count);
  }

}